package com.fau.wmbj.server.service;

import com.fau.wmbj.server.entity.Menu;
import com.fau.wmbj.server.entity.User;
import com.fau.wmbj.server.service.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * 菜单 - service
 *
 * @author jiawei
 * @version 1.0
 * @datetime 2023-03-10 10:31
 */
public interface MenuService extends BaseService<Menu, Long> {

    Map<String, Object> getUserMenus(User user);

    Map<String, Object> getAllMenus();

    List<Map<String, Object>> getRoleMenus(Long roleId);

    List<Map<String, Object>> getCompanyMenus(Long companyId);

    void updateMenu(Menu menu);
}
